//
//  Token.swift
//  PrattParser
//
//  Created by 神经骚栋 on 2023/9/5.
//

import Cocoa


class Token: NSObject {
    
    public var type: TokenType?
    
    public var value: String?
    
    init(_ type: TokenType? = nil, _ value: String? = nil) {
        self.type = type
        self.value = value
    }
    
    public func toString() -> String {
        return "Token (\(type ?? TokenType.None) , \(value ?? ""))"
    }
}
